package com.casstime.ec.cloud.discount.dao.giftPromotion;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.casstime.ec.cloud.dao.jpa.mybatis.Mapper;
import com.casstime.ec.cloud.discount.model.AmountOrderInfo;
import com.casstime.ec.cloud.values.amountPromotion.AmountPromotionCompany;
import com.casstime.ec.cloud.values.giftPromotion.GiftDeductionGift;
import com.casstime.ec.cloud.values.giftPromotion.GiftPromotionFlowing;
import com.casstime.ec.cloud.values.giftPromotion.GiftPromotionFlowingRequest;
/**
 * 
 * ClassName: GiftPromotionFlowingMapper 
 * Function: (买赠活动流水实体类)
 * Reason: ADD REASON(可选).
 *  
 * @author hongcheng.wu  
 * 2018年3月22日 下午2:53:30
 * @version   
 * @since JDK 1.8
 */
@SuppressWarnings("rawtypes")
public interface GiftPromotionFlowingMapper extends Mapper {
	
	int insertGiftPromotionFlowing(@Param("flows") List<GiftPromotionFlowing> flows);
	
	int deleteGiftPromotionFlowing(@Param("gifts")List<GiftDeductionGift> gifts);
	
	List<GiftPromotionFlowing> listGiftPromotionFlowing(@Param("productStoreId") String productStoreId,
			@Param("request") GiftPromotionFlowingRequest request);
	
	List<AmountPromotionCompany> listGiftPromotionCompanyBystoreId(@Param("productStoreId") String productStoreId);
	
	List<AmountOrderInfo> listGiftOrderInfo(@Param("promotionIds")List<String> promotionIds);
	
	List<GiftPromotionFlowing> gitGiftPromotionFlowingByOrderId(@Param("gifts")List<GiftDeductionGift> gifts);
	
	
	
}
